package SQL.query;

import SQL.abysnSQL.CreDefList;

/*
 * createview ::= CREATE VIEW ID : vn LBRACE CreDefList:cd RBRACE AS LBRACE SQL:s RBRACE
		{:RESULT = new CreateView(vn,cd,s);:};
 */
public class CreateView  extends SQL{
	public String viewname;
	public SQL sql;
	
	public CreateView(String id, SQL s){
		viewname = id;
		sql = s;
	}
	
	public String toString(){
		return "CREATE VIEW "+viewname + " AS " + sql.toString();
	}
}
